package com.ydd.moudle.guide;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ydd.base.BaseFragment;
import com.ydd.util.glide.GlideManager;

/**
 * Created by tao on 17-3-20.
 */

public class GuideFragment extends BaseFragment {
    final static String LAYOUT_ID = "layoutid";

    public static GuideFragment newInstance(int layoutId) {
        GuideFragment pane = new GuideFragment();
        Bundle bundle = new Bundle();
        bundle.putInt(LAYOUT_ID, layoutId);
        pane.setArguments(bundle);

        return pane;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
                             @Nullable Bundle savedInstanceState) {
        ViewGroup viewGroup = (ViewGroup) inflater.inflate(getArguments().getInt(LAYOUT_ID, -1),
                container, false);
        return viewGroup;
    }
}
